<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:include href="topic.xsl"/>
  <xsl:include href="learning/common.xsl"/>

  <!-- Assessment Item-->
  <xsl:template match="lcTrueFalse">
    <div class="lcTrueFalse">
      <xsl:apply-templates select="*"/>
    </div>
  </xsl:template>

  <!--Assessment Item Title-->
  <xsl:template match="*[contains(@class, ' learning-d/lcAnswerOption ')]">
    <div class="lcAnswerOption">
      <xsl:apply-templates select="node()"/>
    </div>
  </xsl:template> <xsl:template match="*[contains(@class,'topic/fig')]/*[contains(@class,'topic/title ')]">
    <h2>
      <xsl:apply-templates/>
    </h2>
  </xsl:template>

  <!--Option-->
  <xsl:template match="*[contains(@class, ' learning-d/lcAnswerOption ')]">
    <div class="lcAnswerOption">
      <input type="radio" disabled="true" class="ui-radiobutton-answer"/>
      <xsl:apply-templates select="node()"/>
    </div>
  </xsl:template>
  
  <xsl:template match="*[contains(@class, ' learning-d/lcMultipleSelect ')]//*[contains(@class, ' learning-d/lcAnswerOption ')]">
    <div class="lcAnswerOption">
      <input type="checkbox" disabled="true" class="ui-checkbox-answer" />
      <xsl:apply-templates select="node()"/>
    </div>
  </xsl:template>

  <!--Correct Response-->
  <xsl:template match="*[contains(@class, ' learning-d/lcCorrectResponse ')]">
    <p class="lcCorrectResponse">
      Correct
    </p>
  </xsl:template>

  <!-- Sequence-->
  <xsl:template match="*[contains(@class, ' learning-d/lcSequenceOption ')]/*[contains(@class, ' learning-d/lcAnswerContent ')]">
    <p class="lcAnswerContent">
      <xsl:apply-templates select="../*[contains(@class, ' learning-d/lcSequence ')]/@value"/>
      <xsl:text>:</xsl:text>
      <xsl:apply-templates select="node()"/>
    </p>
  </xsl:template>
  <xsl:template match="*[contains(@class, ' learning-d/lcSequence ')]/@value">
    <span class="value">
      [<xsl:value-of select="."/>]
    </span>
  </xsl:template>

  <!--Header-->
  <xsl:template match="*[contains(@class, ' learning-d/lcMatchingHeader ')]/*">
    <th class="{local-name()}">
      <xsl:apply-templates select="node()"/>
    </th>
  </xsl:template>


  
  <!--Map-->
  <xsl:template match="*[contains(@class, ' learning-d/lcHotspotMap ')]">
    <div class="lcHotspotMap">
      <xsl:apply-templates select="node()"/>
    </div>
  </xsl:template>
  <!--Area-->
  <xsl:template match="*[contains(@class, ' learning-d/lcArea ')]">
    <div class="lcArea">
      <xsl:apply-templates select="node()"/>
    </div>
  </xsl:template>


</xsl:stylesheet> 

